/**
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
*/
import request from '@/utils/request';
import { OssQuery, OssVO } from './types';
import { AxiosPromise } from 'axios';

// 查询OSS对象存储列表
export function listOss(query: OssQuery): AxiosPromise<OssVO[]> {
  return request({
    url: '/fluid/model/list',
    method: 'get',
    params: query
  });
}

// 删除OSS对象存储
export function delOss(ossId: string | number | Array<string | number>) {
  return request({
    url: '/fluid/model/' + ossId,
    method: 'delete'
  });
}
// 保存模型库
export function saveModelLibrary(data) {
  return request({
    url: '/fluid/model/save',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'multipart/form-data' }
  });
}
